package com.example.sps.mapper;

import com.example.sps.pojo.dto.EmpPageQueryDTO;
import com.example.sps.pojo.entity.Employee;
import com.example.sps.pojo.vo.EmpInfoVO;
import com.example.sps.pojo.vo.EmpUpdateVO;
import com.example.sps.pojo.vo.EmpVO;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

@Mapper
public interface EmployeeMapper {
    EmpInfoVO getById(Integer id);
    @Select("select * from t_employee where phone = #{phone}")
    Employee getByPhone(String phone);

    void updateEmpInfo(Employee employee);

    Page<EmpVO> pageQuery(EmpPageQueryDTO empPageQueryDTO);

    void updatePwd(Employee employee);

    void updateStatus(Employee employee);

    void updateDisable(Employee employee);

    void insert(Employee employee);

    EmpUpdateVO getByEmpId(Integer empId);

    void editEmp(Employee employee);
}
